<?php

include_once 'TypeMemberAttributes.php';

class FieldAttributes extends TypeMemberAttributes
{
    public function get_const()
    {
        return $this->const;
    }

    public function set_const($const)
    {
        if(is_bool($const))
        {
            $this->const = $const;
            if($const)
            {
                $this->abstract = false;
                $this->private = false;
                $this->protected = false;
                $this->public = false;
            }
            else
            {
                $this->public = true;
            }
        }
        else
        {
            throw new InvalidArgumentException(
                'The value is not boolean.');
        }
    }
    
    private $const = false;
}

?>
